<template>
    <div>
        <el-row v-for="o in 3" :key="o">
            <el-col span="6" v-for="o in 4" :key="o" class="text item">
                <el-card class="box-card">
                    <div @click="toRepositoryContext"><p class="context">
                        知识内容
                    </p></div>

                    <div v-if="deletebuttonshow" style="margin-top: 30px">
                        <el-button size="small" style=";margin-left: 50px" @click.native="toRepositoryContextEdit">编辑</el-button>
                        <el-button size="small" style="margin-top: 10px;margin-left: 50px" @click="changedelte">删除</el-button>
                    </div>
                </el-card>
            </el-col>

        </el-row>

        <el-row>
            <el-pagination
                    layout="prev, pager, next"
                    :total="1000">
            </el-pagination>
        </el-row>
    </div>

</template>

<script>

    export default {
        name: "repositorycontextlist",
        components: {},
        methods: {
            toRepositoryContext() {
                this.$router.push({path: `/repository/repositorycontext`});
            },
            toRepositoryContextEdit(){
                this.$router.push({path: `/repository/repositorycontextedit`});
            },
            changedelte(){
                this.$emit("change1delete",true)
            }
        }
    }
</script>

<style scoped>

</style>